import Mock from "mockjs"
import Floor from "./floor.json"
import Slide from "./slide.json"
// 模拟的url路径 请求方式 模拟数据
// Mock.mock("模拟的url路径","get",{
//     code:200,
//     message:"ok",
//     data:"数据",
//     ok:true
// })

// 模拟轮播图的接口
Mock.mock("https://www.XA221208.com/slide","get",{
    code:200,
    message:"ok",
    data:Slide,
    ok:true
})
// 模拟获取楼层的接口
Mock.mock("https://www.XA221208.com/floor","get",{
    code:200,
    message:"ok",
    data:Floor,
    ok:true
})